import service from '.'

interface loginData {
    name: string;
    password: string
}
// 登录接口
export function login(data: loginData) {
    return service({
        url: "/user",
        method: "post",
        data
    })
}

// table列表
export function getData() {
    return service({
        url: "/table",
        method: "get"
    })
}